package t327.mapper;

import t327.pojo.Materials;
import t327.pojo.SampleSheetAndMaterials;

import java.util.List;

public interface MaterialsMapper {
    List<Materials> queryAll();
    //根据Id查询款号所需所有的主面料
    List<SampleSheetAndMaterials> getAllMaterialsById(Long sampleSheetId);
    //根据Id查询款号所需所有的辅料
    List<SampleSheetAndMaterials> getAllLngredientsById(Long sampleSheetId);
    //根据所有的主面料
    List<SampleSheetAndMaterials> getAllMaterials();
    //根据所有的辅料
    List<SampleSheetAndMaterials> getAllLngredients();
}
